{% extends "::base.html.twig" %}
{% block title %}{{ parent() }} - Admin{% endblock %}
{% block titre %}{{ parent() }} Modifier le type{% endblock %}
{% block body %}
<div class="col_5">
    <form action="{{ path('page_update', { 'id': entity.id }) }}" method="post" {{ form_enctype(edit_form) }}>
        {{ form_errors(edit_form) }}
        <table>
            <tr>
                <td>{{ form_label(edit_form.name, "Nom du type de groupe : ") }}</td>
                <td>{{ form_widget(edit_form.name) }}<span class="rouge"><i>{{form_errors(edit_form.name)}}</i></span></td>
            </tr>
        </table>
        <table>
            <tr>
                <td>{{ form_label(edit_form.attributs) }}</td>
            </tr>
            <tr>
                <td>{{ form_widget(edit_form.attributs) }}<span class="rouge"><i>{{form_errors(edit_form.attributs)}}</i></span></td>
            </tr>
        </table>
        {{ form_rest(edit_form) }}
        <table class="record_actions">
            <tr>
                <td><a href="{{ path('page_show', { 'id': entity.id }) }}" class="btn medium blue">
                        <span class="icon small white" data-icon=":"></span>Retour
                    </a>
                </td>
                <td>
                    <button type="submit" class="btn medium blue"><span class="icon small white" data-icon="7"></span>Modifier</button>
                </td>
                
            </tr>
        </table>
    </form>
</div>
{% endblock body %}